package cn.itcast.user.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_user")
public class User {
    private Long id;

    /**
     * 账号
     */
    private String account;

    /**
     * 密码（加密后）
     */
    private String password;

    /**
     * 密码加密盐值
     */
    private String salt;

    /**
     * 昵称
     */
    private String username;

    /**
     * 地址
     */
    private String address;

    public User(String account, String password, String salt, String username, String address) {
        this.account = account;
        this.password = password;
        this.salt = salt;
        this.username = username;
        this.address = address;
    }
}
